//
//  ExhibitionObject.m
//  HAODE
//
//  Created by LiYinDi on 16/4/8.
//  Copyright © 2016年 reabam.com. All rights reserved.
//

#import "ExhibitionObject.h"
#import "ExhibitionCategoryViewController.h"
 
@implementation ExhibitionObject
//一下方法都是只是打了个log 等会看log 以及参数能对上就说明js调用了此处的iOS 原生方法
-(void)go:(NSString *)string1 List:(NSString *)message2
{
   // 使用下面GCD代码（使用主线程更新UI）即可去掉警报This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes.  This will cause an exception in a future release.
    dispatch_async(dispatch_get_main_queue(), ^{
        if ([self.delegate respondsToSelector:@selector(itemClick:)]) {
            
            [self.delegate itemClick:message2];
        }
        
    });
}
-(void)go:(NSString *)string1 PageItem:(NSString *)message2
{
    dispatch_async(dispatch_get_main_queue(), ^{
        if ([self.delegate respondsToSelector:@selector(pageItem:)]) {
            
            [self.delegate pageItem:message2];
        }
        
    });

}
-(void)gotoItemDetail:(NSString *)itemID
{
    NSLog(@"itemID==>>==%@",itemID);
    dispatch_async(dispatch_get_main_queue(), ^{
        if ([self.delegate respondsToSelector:@selector(productDetail:)]) {
            
            [self.delegate productDetail:itemID];
        }
        
    });

}
 
@end
